<!--{template header,admin}-->
<script src="js/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
    function selectCell(obj) {
        var trid=obj.value;
        $("#"+trid+" input[name='regular_code[]']").each(function(){
            this.checked = obj.checked;
        });
    }
</script>
<div style="width:100%; height:15px;color:#000;margin:0px 0px 10px;">
  <div style="float:left;"><a href="index.php?admin_main/stat{$setting['seo_suffix']}" target="main"><b>控制面板首页</b></a>&nbsp;&raquo;&nbsp;设置组权限</div>
</div>
<!--{if isset($message)}-->
<!--{eval $type=isset($type)?$type:'correctmsg'; }-->
<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
	<tr>
		<td class="{$type}">{$message}</td>
	</tr>
</table>
<!--{/if}-->
<form action="index.php?admin_usergroup/regular/$group['groupid']{$setting['seo_suffix']}" method="post">
<input type="hidden" name="groupid" value="$group['groupid']">
<table width="100%" cellspacing="1" cellpadding="4" align="center" class="tableborder">
	<tbody>
	<tr class="header" >
		<td colspan="2">
			<input type="button" sytle="cursor:pointer" onclick="document.location.href='index.php?admin_usergroup{$setting['seo_suffix']}'" value="会员用户组" />&nbsp;&nbsp;&nbsp;
			<input type="button" sytle="cursor:pointer" onclick="document.location.href='index.php?admin_usergroup/system{$setting['seo_suffix']}'" value="系统用户组" />&nbsp;&nbsp;&nbsp;
			设置组权限
		</td>
	</tr>
	<tr id="regular_view">
    <td class="altbg1" width="18%">
        <input name="chkGroup" value="regular_view"  class="checkbox" type="checkbox" onclick="selectCell(this);">页面浏览（前台）
    </td>
    <td class="altbg2">
	    <div style="width: 200px; float: left;">
	        <input name="regular_code[]" value="user/register"  {if false!==strpos($group['regulars'],'user/register')}checked{/if}  class="checkbox" type="checkbox">用户注册
	    </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="index/default"  {if false!==strpos($group['regulars'],'index/default')}checked{/if}  class="checkbox" type="checkbox">首页浏览
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="category/view"  {if false!==strpos($group['regulars'],'category/view')}checked{/if}  class="checkbox" type="checkbox">分类浏览
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="category/list"  {if false!==strpos($group['regulars'],'category/list')}checked{/if}  class="checkbox" type="checkbox">列表浏览
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="question/view"  {if false!==strpos($group['regulars'],'question/view')}checked{/if}  class="checkbox" type="checkbox">浏览问题
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="category/recommend"  {if false!==strpos($group['regulars'],'category/recommend')}checked{/if}  class="checkbox" type="checkbox">精彩问题推荐
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="note/list"  {if false!==strpos($group['regulars'],'note/list')}checked{/if}  class="checkbox" type="checkbox">公告列表
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="note/view"  {if false!==strpos($group['regulars'],'note/view')}checked{/if}  class="checkbox" type="checkbox">公告浏览
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="rss/category"  {if false!==strpos($group['regulars'],'rss/category')}checked{/if}  class="checkbox" type="checkbox">分类RSS
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="rss/list"  {if false!==strpos($group['regulars'],'rss/list')}checked{/if}  class="checkbox" type="checkbox">列表RSS
		</div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="rss/question"  {if false!==strpos($group['regulars'],'rss/question')}checked{/if}  class="checkbox" type="checkbox">问题RSS
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="user/space_ask,user/space_answer,user/space"  {if false!==strpos($group['regulars'],'user/space_ask,user/space_answer,user/space')}checked{/if}  class="checkbox" type="checkbox">用户空间
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="user/scorelist"  {if false!==strpos($group['regulars'],'user/scorelist')}checked{/if}  class="checkbox" type="checkbox">用户排行榜
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="expert/default"  {if false!==strpos($group['regulars'],'expert/default')}checked{/if}  class="checkbox" type="checkbox">专家列表
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="question/search"  {if false!==strpos($group['regulars'],'question/search')}checked{/if}  class="checkbox" type="checkbox">问题搜索
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="question/add,question/tagask"  {if false!==strpos($group['regulars'],'question/add,question/tagask')}checked{/if}  class="checkbox" type="checkbox">提问题
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="gift/default,gift/search,gift/add"  {if false!==strpos($group['regulars'],'gift/default,gift/search,gift/add')}checked{/if}  class="checkbox" type="checkbox">礼品商店
        </div>
      </td>
    </tr>

    <!--{if 6!=$group['groupid']}-->
    <tr id="regular_user">
	 <td class="altbg1" width="18%">
        <input name="chkGroup" value="regular_user"  class="checkbox" type="checkbox" onclick="selectCell(this);">用户相关（前台）
     </td>
     <td class="altbg2">
		<div style="width: 200px; float: left;">
			<input name="regular_code[]" value="user/register"  {if false!==strpos($group['regulars'],'user/register')}checked{/if}  class="checkbox" type="checkbox">注册用户
		</div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="user/default,user/score"  {if false!==strpos($group['regulars'],'user/default,user/score')}checked{/if}  class="checkbox" type="checkbox">我的积分
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="user/ask"  {if false!==strpos($group['regulars'],'user/ask')}checked{/if}  class="checkbox" type="checkbox">我的提问
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="user/answer"  {if false!==strpos($group['regulars'],'user/answer')}checked{/if}  class="checkbox" type="checkbox">我的回答
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="user/favorite,question/addfavorite"  {if false!==strpos($group['regulars'],'user/favorite,question/addfavorite')}checked{/if}  class="checkbox" type="checkbox">我的收藏
        </div>
        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="user/profile"  {if false!==strpos($group['regulars'],'user/profile')}checked{/if}  class="checkbox" type="checkbox">个人资料
        </div>
	    <div style="width: 200px; float: left;">
	        <input name="regular_code[]" value="user/uppass"  {if false!==strpos($group['regulars'],'user/uppass')}checked{/if}  class="checkbox" type="checkbox">修改密码
	    </div>

        <div style="width: 200px; float: left;">
            <input name="regular_code[]" value="user/editimg,user/saveimg"  {if false!==strpos($group['regulars'],'user/editimg,user/saveimg')}checked{/if}  class="checkbox" type="checkbox">编辑头像
        </div>
     </td>
    </tr>
    <tr id="regular_question">
		<td class="altbg1" width="18%">
		    <input name="chkGroup" value="regular_question"  class="checkbox" type="checkbox" onclick="selectCell(this);">问题相关（前台）
		</td>
        <td class="altbg2">
            <div style="width: 200px; float: left;">
                <input name="regular_code[]" value="attach/upload"  {if false!==strpos($group['regulars'],'attach/upload')}checked{/if}  class="checkbox" type="checkbox">上传图片
            </div>
            <div style="width: 200px; float: left;">
                <input name="regular_code[]" value="question/answer"  {if false!==strpos($group['regulars'],'question/answer')}checked{/if}  class="checkbox" type="checkbox">回答问题
            </div>
            <div style="width: 200px; float: left;">
                <input name="regular_code[]" value="question/adopt"  {if false!==strpos($group['regulars'],'question/adopt')}checked{/if}  class="checkbox" type="checkbox">采纳答案
            </div>
            <div style="width: 200px; float: left;">
                <input name="regular_code[]" value="question/govote"  {if false!==strpos($group['regulars'],'question/govote')}checked{/if}  class="checkbox" type="checkbox">问题投票
            </div>
            <div style="width: 200px; float: left;">
                <input name="regular_code[]" value="question/close"  {if false!==strpos($group['regulars'],'question/close')}checked{/if}  class="checkbox" type="checkbox">关闭问题
            </div>
            <div style="width: 200px; float: left;">
                <input name="regular_code[]" value="question/supply"  {if false!==strpos($group['regulars'],'question/supply')}checked{/if}  class="checkbox" type="checkbox">补充问题
            </div>
            <div style="width: 200px; float: left;">
                <input name="regular_code[]" value="question/addscore"  {if false!==strpos($group['regulars'],'question/addscore')}checked{/if}  class="checkbox" type="checkbox">提高悬赏
            </div>
            <div style="width: 200px; float: left;">
                <input name="regular_code[]" value="question/editanswer"  {if false!==strpos($group['regulars'],'question/editanswer')}checked{/if}  class="checkbox" type="checkbox">修改答案
            </div>
            <div style="width: 200px; float: left;">
                <input name="regular_code[]" value="question/search"  {if false!==strpos($group['regulars'],'question/search')}checked{/if}  class="checkbox" type="checkbox">问题搜索
            </div>
        </td>
    </tr>

	<tr id="regular_message">
	    <td class="altbg1" width="18%">
	        <input name="chkGroup" value="regular_message"  class="checkbox" type="checkbox" onclick="selectCell(this);">站内消息（前台）
	    </td>
	    <td class="altbg2">
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="message/send"  {if false!==strpos($group['regulars'],'message/send')}checked{/if}  class="checkbox" type="checkbox">发消息
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="message/new"  {if false!==strpos($group['regulars'],'message/new')}checked{/if}  class="checkbox" type="checkbox">收件箱
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="message/personal"  {if false!==strpos($group['regulars'],'message/personal')}checked{/if}  class="checkbox" type="checkbox">私人消息
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="message/system"  {if false!==strpos($group['regulars'],'message/system')}checked{/if}  class="checkbox" type="checkbox">系统消息
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="message/outbox"  {if false!==strpos($group['regulars'],'message/outbox')}checked{/if}  class="checkbox" type="checkbox">发件箱
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="message/view"  {if false!==strpos($group['regulars'],'message/view')}checked{/if}  class="checkbox" type="checkbox">浏览消息
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="message/remove"  {if false!==strpos($group['regulars'],'message/remove')}checked{/if}  class="checkbox" type="checkbox">删除消息
	        </div>
	    </td>
	</tr>
	<!--{if 1==$group['grouptype']}-->
	<tr id="regular_setting">
	    <td class="altbg1" width="18%">
	        <input name="chkGroup" value="regular_setting"  class="checkbox" type="checkbox" onclick="selectCell(this);">网站设置（后台）
	    </td>
	    <td class="altbg2">
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_main/default,admin_main/header,admin_main/menu,admin_main/stat,admin_main/login,admin_main/logout"  {if false!==strpos($group['regulars'],'admin_main/default,admin_main/header,admin_main/menu,admin_main/stat,admin_main/login,admin_main/logout')}checked{/if}  class="checkbox" type="checkbox">后台登录
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_setting/base,admin_setting/default"  {if false!==strpos($group['regulars'],'admin_setting/base,admin_setting/default')}checked{/if}  class="checkbox" type="checkbox">基本设置
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_setting/list"  {if false!==strpos($group['regulars'],'admin_setting/list')}checked{/if}  class="checkbox" type="checkbox">列表显示
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_setting/register"  {if false!==strpos($group['regulars'],'admin_setting/register')}checked{/if}  class="checkbox" type="checkbox">注册设置
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_setting/mail"  {if false!==strpos($group['regulars'],'admin_setting/mail')}checked{/if}  class="checkbox" type="checkbox">邮件设置
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_setting/credit"  {if false!==strpos($group['regulars'],'admin_setting/credit')}checked{/if}  class="checkbox" type="checkbox">积分设置
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_setting/seo"  {if false!==strpos($group['regulars'],'admin_setting/seo')}checked{/if}  class="checkbox" type="checkbox">seo设置
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_setting/static"  {if false!==strpos($group['regulars'],'admin_setting/static')}checked{/if}  class="checkbox" type="checkbox">html纯静态
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_setting/word"  {if false!==strpos($group['regulars'],'admin_setting/word')}checked{/if}  class="checkbox" type="checkbox">词语过滤
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_setting/cache"  {if false!==strpos($group['regulars'],'admin_setting/cache')}checked{/if}  class="checkbox" type="checkbox">更新缓存
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_setting/passport"  {if false!==strpos($group['regulars'],'admin_setting/passport')}checked{/if}  class="checkbox" type="checkbox">通行证
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_setting/ucenter"  {if false!==strpos($group['regulars'],'admin_setting/ucenter')}checked{/if}  class="checkbox" type="checkbox">UCenter
	        </div>
	    </td>
	</tr>

	<tr id="regular_manage">
	    <td class="altbg1" width="18%">
	        <input name="chkGroup" value="regular_manage"  class="checkbox" type="checkbox" onclick="selectCell(this);">网站管理（后台）
	    </td>
	    <td class="altbg2">
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_category/default,admin_category/add,admin_category/edit,admin_category/view,admin_category/remove,admin_category/reorder"  {if false!==strpos($group['regulars'],'admin_category/default,admin_category/add,admin_category/edit,admin_category/view,admin_category/remove,admin_category/reorder')}checked{/if}  class="checkbox" type="checkbox">分类管理
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_question/default,admin_question/searchquestion,admin_question/searchanswer,admin_question/removequestion,admin_question/removeanswer,admin_question/edit"  {if false!==strpos($group['regulars'],'admin_question/default,admin_question/searchquestion,admin_question/searchanswer,admin_question/removequestion,admin_question/removeanswer,admin_question/edit')}checked{/if}  class="checkbox" type="checkbox">问题管理
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_user/default,admin_user/search,admin_user/add,admin_user/remove,admin_user/edit"  {if false!==strpos($group['regulars'],'admin_user/default,admin_user/search,admin_user/add,admin_user/remove,admin_user/edit')}checked{/if}  class="checkbox" type="checkbox">用户管理
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_usergroup/default,admin_usergroup/add,admin_usergroup/remove,admin_usergroup/edit"  {if false!==strpos($group['regulars'],'admin_usergroup/default,admin_usergroup/add,admin_usergroup/remove,admin_usergroup/edit')}checked{/if}  class="checkbox" type="checkbox">用户组管理
	        </div>
	        <div style="width: 200px; float: left;">
	            <input name="regular_code[]" value="admin_note/default,admin_note/add,admin_note/edit,admin_note/remove"  {if false!==strpos($group['regulars'],'admin_note/default,admin_note/add,admin_note/edit,admin_note/remove')}checked{/if}  class="checkbox" type="checkbox">公告管理
	        </div>
	    </td>
	</tr>
    <!--{/if}-->
    <!--{/if}-->
    <tr><td colspan="2" align="left" class="altbg1"><input type="submit" class="button" name="submit" value="提交" /></td></tr>
	</tbody>
</table>
</form>
<br>
<!--{template footer,admin}-->

